using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;


namespace Blople.GameScenes
{
    public class CreditScene : GameScene
    {
        Texture2D backgroundTexture;
        Texture2D blockTexture;
        SpriteFont largeFont;
        SpriteFont mediumFont;
        SpriteFont smallFont;

        public CreditScene(Game game, Texture2D backgroundTexture, Texture2D blockTexture, SpriteFont largeFont, SpriteFont mediumFont, SpriteFont smallFont) : base(game)
        {
            this.backgroundTexture = backgroundTexture;
            this.blockTexture = blockTexture;
            this.largeFont = largeFont;
            this.mediumFont = mediumFont;
            this.smallFont = smallFont;
        }

        public override void Initialize()
        {
            base.Initialize();
        }

        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);
        }

        public override void Draw(GameTime gameTime)
        {
            SpriteBatch sBatch = (SpriteBatch)Game.Services.GetService(typeof(SpriteBatch));
            sBatch.Draw(backgroundTexture, new Vector2(0, 0), Color.White);
            sBatch.Draw(blockTexture, new Vector2(25, 25), Color.White);
            sBatch.DrawString(largeFont, "Credits", new Vector2((Game.Window.ClientBounds.Width - largeFont.MeasureString("Credits").X) / 2, 50), Color.White);
            sBatch.DrawString(mediumFont, "Producer", new Vector2((Game.Window.ClientBounds.Width - mediumFont.MeasureString("Producer").X) / 2, 150), Color.White);
            sBatch.DrawString(smallFont, "Joeri Verlooy", new Vector2((Game.Window.ClientBounds.Width - smallFont.MeasureString("Joeri Verlooy").X) / 2, 185), Color.White);
            sBatch.DrawString(mediumFont, "Lead Programmer", new Vector2((Game.Window.ClientBounds.Width - mediumFont.MeasureString("Lead Programmer").X) / 2, 230), Color.White);
            sBatch.DrawString(smallFont, "Joeri Verlooy", new Vector2((Game.Window.ClientBounds.Width - smallFont.MeasureString("Joeri Verlooy").X) / 2, 265), Color.White);
            sBatch.DrawString(mediumFont, "Lead Designer", new Vector2((Game.Window.ClientBounds.Width - mediumFont.MeasureString("Lead Designer").X) / 2, 310), Color.White);
            sBatch.DrawString(smallFont, "Joeri Verlooy", new Vector2((Game.Window.ClientBounds.Width - smallFont.MeasureString("Joeri Verlooy").X) / 2, 345), Color.White);
            sBatch.DrawString(mediumFont, "Designer", new Vector2((Game.Window.ClientBounds.Width - mediumFont.MeasureString("Designer").X) / 2, 390), Color.White);
            sBatch.DrawString(smallFont, "Rene Hoekstra", new Vector2((Game.Window.ClientBounds.Width - smallFont.MeasureString("Rene Hoekstra").X) / 2, 425), Color.White);
            base.Draw(gameTime);
        }
    }
}
